<?php

namespace SL\FrontBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * ImageProjet
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="SL\FrontBundle\Entity\ImageProjetRepository")
 * @ORM\HasLifecycleCallbacks
 */
class ImageProjet
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
	
    /**
     * @var integer
     *
     * @ORM\Column(name="position", type="integer")
     */
	private $position;
	
	/**
     * @ORM\ManyToOne(targetEntity="SL\FrontBundle\Entity\Projet", inversedBy="image")
	 * @ORM\JoinColumn(nullable=false)
     */
	private $projet;
	
	/**
     * @ORM\OneToOne(targetEntity="SL\FrontBundle\Entity\Image", cascade={"persist"})
     */
	private $big;
	
	/**
     * @ORM\OneToOne(targetEntity="SL\FrontBundle\Entity\Image", cascade={"persist"})
     */
	private $small;
	
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

	 /**
     * Set position
     *
     * @param integer $position
     * @return Image
     */
    public function setPosition($position)
    {
        $this->position = $position;
    
        return $this;
    }

    /**
     * Get position
     *
     * @return integer 
     */
    public function getPosition()
    {
        return $this->position;
    }

    /**
     * Set projet
     *
     * @param \SL\FrontBundle\Entity\Projet $projet
     * @return ImageProjet
     */
    public function setProjet(\SL\FrontBundle\Entity\Projet $projet)
    {
        $this->projet = $projet;
    
        return $this;
    }

    /**
     * Get projet
     *
     * @return \SL\FrontBundle\Entity\Projet 
     */
    public function getProjet()
    {
        return $this->projet;
    }

    /**
     * Set projet
     *
     * @param \SL\FrontBundle\Entity\Image $small
     * @return ImageProjet
     */
    public function setSmall(\SL\FrontBundle\Entity\Image $small)
    {
        $this->small = $small;
    
        return $this;
    }

    /**
     * Get projet
     *
     * @return \SL\FrontBundle\Entity\Image
     */
    public function getSmall()
    {
        return $this->small;
    }
	
    /**
     * Set projet
     *
     * @param \SL\FrontBundle\Entity\Image $big
     * @return ImageProjet
     */
    public function setBig(\SL\FrontBundle\Entity\Image $big)
    {
        $this->big = $big;
    
        return $this;
    }

    /**
     * Get projet
     *
     * @return \SL\FrontBundle\Entity\Image
     */
    public function getBig()
    {
        return $this->big;
    }
}